#pragma once
#include "TreeCtrlItem.h"

class CGuid;
class GtdProject;
class GtdTaskItem;

class TodoListTreeItem : public CTreeCtrlItem
{
public:
	TREEIREM_CONVERSION_DEF(TodoListTreeItem, CTreeCtrlItem)
	static void LoadTree(const CGuid& context, CGTDTreeCtrl& ctrl);
	static void LoadUnContextTree(CGTDTreeCtrl& ctrl);

	TodoListTreeItem findItem( const CGuid&guid ) const;

	static TodoListTreeItem AddProjectToTree(GtdProject* pProj, CGTDTreeCtrl& ctrl);
	static TodoListTreeItem AddTaskItemToTree(GtdTaskItem* pItem, CGTDTreeCtrl& ctrl);

	
};

